package imagetabpaine;


import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author rbs
 */
public class Tab {

    String name;
    JPanel panel;
    ImageIcon image;

    public Tab(){
        this.panel = null;
        this.image = null;
        this.image = null;
    };

    public Tab(String name, JPanel panel, ImageIcon image) {
        this.name = name;
        this.panel = panel;
        this.image = image;
    }

    public Tab(JPanel panel, ImageIcon image) {
        if (panel.getName() != null)
            this.name = panel.getName();
        else
            this.name = " ";
        this.panel = panel;
        this.image = image;
    }

    public String getName()
    {
        return name;
    }

    public JPanel getPanel()
    {
        return panel;
    }

    public ImageIcon getIcon()
    {
        return image;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public void setPanel(JPanel panel)
    {
        this.panel = panel;
    }

    public void setIcon(ImageIcon image)
    {
        this.image = image;
    }
}
